package com.exam.pojo.domain;

import com.exam.pojo.dto.ImageInfo;
import com.exam.pojo.dto.Item;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * @author LG
 */
@Data
@Document(collection = "question")
public class Question {
    @Id
    private Long id;
    private String title;
    @Field("has_img")
    private Boolean hasImg;
    private List<ImageInfo> images;
    private List<Item> items;
    private String correct;
    private Integer difficulty;
    @Field("answer_num")
    private Integer answerNum;
    @Field("err_num")
    private Integer errNum;
    private String analysis;
    @Field("source_key")
    private String sourceKey;
    @Field("source_type")
    private String sourceType;
    @Field("cate_id")
    private Long cateId;
    @Field("video_url")
    private String videoUrl;
    @Field("subject_id")
    private Long subjectId;
    @Field("continent_id")
    private Long continentId;
}
